package Day003_多态_内部类.demo008权限修饰符;

public class Person {
    // public 公共
    public void method1() {
        System.out.println("public method1");
    }
    // protected 受保护
    protected void method2() {
        System.out.println("protected method2");
    }

    // 默认
    void method3() {
        System.out.println("空的 method3");
    }

    // private 私有的
    private void method4() {
        System.out.println("private method4");
    }

    //
    public void method(){
        method1();
        method2();
        method3();
        method4();
    }
}
